﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViceLeadersChecking.ascx.cs" Inherits="ViceLeadersChecking" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource_vl" OnDataBinding="GridView1_DataBinding" OnDataBound="GridView1_DataBound" OnRowDataBound="GridView1_RowDataBound" OnRowUpdating="GridView1_RowUpdating">
    <Columns>
        <asp:BoundField DataField="SerialNum" HeaderText="考核编号" ReadOnly="True" />
        <asp:BoundField DataField="Name" HeaderText="姓名" ReadOnly="True" />
        <asp:TemplateField HeaderText="部门">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("DepartmentName") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Title" HeaderText="职位" ReadOnly="True" />
        <asp:BoundField DataField="SelfScore" HeaderText="自评分" ReadOnly="True" />
        <asp:BoundField DataField="LeaderScore" HeaderText="主管评分" />
        <asp:CommandField ShowEditButton="True" />
    </Columns>
    <FooterStyle CssClass="FooterStyle" />
    <RowStyle CssClass="RowStyle" />
    <EmptyDataRowStyle CssClass="EmptyRowStyle" />
    <PagerStyle CssClass="PagerStyle" />
    <SelectedRowStyle CssClass="SelectedRowStyle" />
    <HeaderStyle CssClass="HeaderStyle" />
    <EditRowStyle CssClass="EditRowStyle" />
    <AlternatingRowStyle CssClass="AltRowStyle" />
</asp:GridView>
<br />
<asp:ObjectDataSource ID="ObjectDataSource_vl" runat="server" SelectMethod="GetViceLeaders" TypeName="StaffDB" UpdateMethod="UpdateStaffScore" DataObjectTypeName="StaffDetail">
    <SelectParameters>
        <asp:Parameter Name="DirectorSN" />
    </SelectParameters>
</asp:ObjectDataSource>
<br />
